#define USER_LED_R 17 #define USER_LED_G 16 #define USER_LED_B 25 // Defined USER_LED_R as 17th pin, USER_LED_G as 16 and USER_LED_B as 25 as per the pinmap for the model xiao rp2040 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(USER_LED_R, OUTPUT); pinMode(USER_LED_G, OUTPUT); pinMode(USER_LED_B, OUTPUT); // Replaced LED_BUILTIN with USER_LED_R based on the board we are using digitalWrite(USER_LED_B, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(USER_LED_G, HIGH); // turn the LED on (HIGH is the voltage level) // Turned off USER_LED_B and USER_LED_G } // the loop function runs over and over again forever void loop() { digitalWrite(USER_LED_R, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(USER_LED_R, LOW); // turn the LED off by making the voltage LOW delay(300); digitalWrite(USER_LED_R, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(USER_LED_R, LOW); // turn the LED off by making the voltage LOW delay(300); // wait for a second }